package android.appinterfaces;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;

public class AppInterfacesActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button boton=(Button) findViewById(R.id.btnNew);
        boton.setOnClickListener(new OnClickListener() {
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent ventana=new Intent(AppInterfacesActivity.this,FormActivity.class);
				startActivity(ventana);
			}
		});
        
        Button boton2=(Button) findViewById(R.id.btnStat);
        boton2.setOnClickListener(new OnClickListener() {
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent ventana2=new Intent(AppInterfacesActivity.this,StatisticActivity.class);
				startActivity(ventana2);
			}
		});

    }
}